package org.datacoder.geocoding.jurisdiction

/**
 * A voting district.  Basically, the voting district
 * in which you live determines where you go to vote.
 * These are by far the most numerous jurisdiction in
 * Datacoder.  Belongs to a county.
 */
class VotingDistrict extends Jurisdiction{

    County county

    static belongsTo = [county:County]

    public static String retrieveShortName(){
        return "VotDist"
    }
    public String toString(){
        com.vividsolutions.jts.geom.Point point = getMultiPolygon().getCentroid()
        return "VotingDistrict--Name: ${name}; Lat/Long: (${point.getY()}, ${point.getX()})"
    }

}

